﻿using Abp.Application.Services.Dto;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace study.Scores.Dto
{
    public class OutPutScore : EntityDto
    {
        /// <summary>
        /// 表id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public new int Id { get; set; }
        /// <summary>
        /// 学生姓名
        /// </summary>
        [StringLength(20)]
        public string StudentName { get; set; }
        /// <summary>
        /// 课程名称
        /// </summary>
        [StringLength(20)]
        public string CourseName { get; set; }
        /// <summary>
        /// 学生id
        /// </summary>
        [StringLength(20)]
        public int StudentId { get; set; }
        /// <summary>
        /// 课程id
        /// </summary>
        [StringLength(20)]
        public int CourseId { get; set; }
        /// <summary>
        /// 分数
        /// </summary>
        [StringLength(20)]
        public string Grade { get; set; }
        public OutPutScore(int id, string sname, string cname, int sid, int cid, string grade)
        {
            Id = id;
            StudentName = sname;
            CourseName = cname;
            StudentId = sid;
            CourseId = cid;
            Grade = grade;

        }
    }
}
